<template>
    <el-dialog v-if="dialogVisible" :close-on-click-modal='false' title="广告账户/预警提醒人" :visible.sync="dialogVisible" @close="resetForm()" width="800px">
        <el-table :data="tableData" class="com_table" max-height="400px" ref="planRef" v-loading="loading">
            <el-table-column prop="qc_delivery_monitoring_advertiserid" label="账户ID" width="180">
            </el-table-column>
            <el-table-column prop="name" label="账户名称">
            </el-table-column>
            <el-table-column prop="qc_delivery_monitoring_marketing_goal_type" label="账户类型">
                <template slot-scope="scope">
                    {{scope.row.qc_delivery_monitoring_marketing_goal_type == '2'?'直播托管、短视频托管':scope.row.qc_delivery_monitoring_marketing_goal_type == '1'?'直播托管':'短视频托管'}}
                </template>
            </el-table-column>
            <el-table-column prop="qc_delivery_monitoring_userid" label="预警提醒人" width="185">
                <template slot-scope="scope">
                    {{scope.row.qc_delivery_monitoring_userid.map(item=>{return item.nickname}).toString()?scope.row.qc_delivery_monitoring_userid.map(item=>{return item.nickname}).toString():'--'}}
                </template>
            </el-table-column>
            
        </el-table>
        <span slot="footer" class="dialog-footer">
            <el-button size="small" type="primary" @click="resetForm()" class="el-button-width">关 闭</el-button>
        </span>
    </el-dialog>
</template>

<script>
export default {
    name: "",
    data() {
        return {
            loading: false,
            dialogVisible: false,
            hasCheck: [],
            queryInfo: {
                qc_delivery_monitoring_id: "",
            },
            tableData: [],
        };
    },
    created() {
       
    },
    
    methods: {
        //获取广告组
        async getDataList() {
            this.loading = true;
            const { data: res } = await this.$http.post(
                "/autodrop/Monitoring/templateFind",
                this.queryInfo
            );
            if (res.code !== 200) {
                this.$message.error(res.msg);
                return;
            } else {
                this.tableData = res.data.advertiser_list
            }
            this.loading = false;
        },

        // 关闭重置表单
        resetForm() {
            this.dialogVisible = false;
        },

    },
    components: {},
};
</script>


<style scoped>
</style>
